package com.yphone.ui.ysj.bean;

import android.text.TextUtils;

import com.iiordanov.bVNC.App;

import java.io.Serializable;

public class RemoteConnectBean implements Serializable {
    public String ip;

    public String token;

    public String remark;

    public int id;

    public int timeHour = 80;

    public String view;

    public String getImgPath(){
//        String address = ip;
//        address = address.replace(".","");
        return App.getContext().getCacheDir().getPath() + "/jieping_" + id + ".jpg";
    }

    public boolean equals(RemoteConnectBean bean) {
        if (bean.id == id) {
            return true;
        }
        return false;
    }

    public String getName(){
        if (!TextUtils.isEmpty(remark)){
            return remark;
        }
        return "设备"+id;
    }

}
